package backend

//
//import (
//	"blog/models"
//	"strings"
//
//	"github.com/astaxie/beego"
//)
//
//type LoginController struct {
//	beego.Controller
//}
//
///**
// *  登录页面
// */
//func (this *LoginController) Login() {
//	this.TplName = "admin/login.html"
//}
//
//func (this *LoginController) DoLogin() {
//	account := strings.TrimSpace(this.GetString("account"))
//	password := strings.TrimSpace(this.GetString("password"))
//	remember := this.GetString("remember")
//	beego.Info("接收参数：账号：", account, "密码：", password, "是否记住：", remember)
//	var admin models.Admin
//	admin.Account = account
//	row := admin.Read("account")
//	beego.Info("结果: ", admin)
//	if row != nil {
//		this.Data["errmsg"] = "账号不存在"
//		this.TplName = "admin/login.html"
//		return
//	}
//	this.Redirect("welcome", 302)
//}
